<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false" namespace="PetShop.Domain.Model"
					 assembly="PetShop">

<class name="LineItemEntity" table="LineItem" >
  <id name="LineItemId" column="LineItemId" type="System.Int32" access="field.pascalcase-underscore"
>
    <generator class="native"/>
  </id>
	 
	<property name="LineNum" column="LineNum" access="field.pascalcase-underscore" not-null="true" type="System.Int32"  insert="true" update="true"/>
	<property name="ListPrice" column="UnitPrice" access="field.pascalcase-underscore" not-null="true" type="System.Decimal"  insert="true" update="true"/>


	<property name="Quantity" column="Quantity" access="field.pascalcase-underscore" not-null="true" type="System.Int32"  insert="true" update="true"/>
  
<many-to-one name="Item"  access="field.pascalcase-underscore" not-null="true" outer-join="auto" insert="true" update="true" cascade="save-update">
	<column name="ItemId"/>
</many-to-one>
  
  
<many-to-one name="Order" column="OrderId" access="field.pascalcase-underscore"  not-null="true" fetch="join" cascade="save-update"></many-to-one>


</class>
</hibernate-mapping>
